const path = require("path");
const WebpachHtmlPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = {
  mode: "production",
  devtool: "source-map",
  output: {
    path: path.resolve(__dirname, "dist"),
  },
  plugins: [
    new CleanWebpackPlugin(),
    new WebpachHtmlPlugin({
      template: path.resolve(__dirname, "./public/index.html"),
    }),
  ],
};
